Optimal. Leaf size=95 \[ \frac {x}{25}+\frac {123 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )}{1600 d}-\frac {123 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )}{1600 d}+\frac {9 \tan (c+d x)}{80 d (5+3 \sec (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 95, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.417, Rules used = {3870, 4004,
3916, 2738, 212} \begin {gather*} \frac {9 \tan (c+d x)}{80 d (3 \sec (c+d x)+5)}+\frac {123 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )}{1600 d}-\frac {123 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )+2 \cos \left (\frac {1}{2} (c+d x)\right )\right )}{1600 d}+\frac {x}{25} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 2738
Rule 3870
Rule 3916
Rule 4004
Rubi steps
\begin {align*} \int \frac {1}{(5+3 \sec (c+d x))^2} \, dx &=\frac {9 \tan (c+d x)}{80 d (5+3 \sec (c+d x))}-\frac {1}{80} \int \frac {-16+15 \sec (c+d x)}{5+3 \sec (c+d x)} \, dx\\ &=\frac {x}{25}+\frac {9 \tan (c+d x)}{80 d (5+3 \sec (c+d x))}-\frac {123}{400} \int \frac {\sec (c+d x)}{5+3 \sec (c+d x)} \, dx\\ &=\frac {x}{25}+\frac {9 \tan (c+d x)}{80 d (5+3 \sec (c+d x))}-\frac {41}{400} \int \frac {1}{1+\frac {5}{3} \cos (c+d x)} \, dx\\ &=\frac {x}{25}+\frac {9 \tan (c+d x)}{80 d (5+3 \sec (c+d x))}-\frac {41 \text {Subst}\left (\int \frac {1}{\frac {8}{3}-\frac {2 x^2}{3}} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{200 d}\\ &=\frac {x}{25}+\frac {123 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )}{1600 d}-\frac {123 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )}{1600 d}+\frac {9 \tan (c+d x)}{80 d (5+3 \sec (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 162, normalized size = 1.71 \begin {gather*} \frac {5 \cos (c+d x) \left (64 (c+d x)+123 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )-123 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )+3 \left (64 c+64 d x+123 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )-123 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )+60 \sin (c+d x)\right )}{1600 d (3+5 \cos (c+d x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 76, normalized size = 0.80
method | result | size |
derivativedivides | \(\frac {-\frac {9}{160 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-2\right )}+\frac {123 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-2\right )}{1600}-\frac {9}{160 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2\right )}-\frac {123 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2\right )}{1600}+\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{25}}{d}\) | \(76\) |
default | \(\frac {-\frac {9}{160 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-2\right )}+\frac {123 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-2\right )}{1600}-\frac {9}{160 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2\right )}-\frac {123 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2\right )}{1600}+\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{25}}{d}\) | \(76\) |
norman | \(\frac {-\frac {4 x}{25}-\frac {9 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{80 d}+\frac {x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{25}}{\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )-4}+\frac {123 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-2\right )}{1600 d}-\frac {123 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2\right )}{1600 d}\) | \(84\) |
risch | \(\frac {x}{25}+\frac {9 i \left (3 \,{\mathrm e}^{i \left (d x +c \right )}+5\right )}{200 d \left (5 \,{\mathrm e}^{2 i \left (d x +c \right )}+6 \,{\mathrm e}^{i \left (d x +c \right )}+5\right )}+\frac {123 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\frac {3}{5}-\frac {4 i}{5}\right )}{1600 d}-\frac {123 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\frac {3}{5}+\frac {4 i}{5}\right )}{1600 d}\) | \(88\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.46, size = 111, normalized size = 1.17 \begin {gather*} -\frac {\frac {180 \, \sin \left (d x + c\right )}{{\left (\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 4\right )} {\left (\cos \left (d x + c\right ) + 1\right )}} - 128 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right ) + 123 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 2\right ) - 123 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 2\right )}{1600 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.62, size = 102, normalized size = 1.07 \begin {gather*} \frac {640 \, d x \cos \left (d x + c\right ) + 384 \, d x - 123 \, {\left (5 \, \cos \left (d x + c\right ) + 3\right )} \log \left (\frac {3}{2} \, \cos \left (d x + c\right ) + 2 \, \sin \left (d x + c\right ) + \frac {5}{2}\right ) + 123 \, {\left (5 \, \cos \left (d x + c\right ) + 3\right )} \log \left (\frac {3}{2} \, \cos \left (d x + c\right ) - 2 \, \sin \left (d x + c\right ) + \frac {5}{2}\right ) + 360 \, \sin \left (d x + c\right )}{3200 \, {\left (5 \, d \cos \left (d x + c\right ) + 3 \, d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (3 \sec {\left (c + d x \right )} + 5\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 69, normalized size = 0.73 \begin {gather*} \frac {64 \, d x + 64 \, c - \frac {180 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 4} - 123 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2 \right |}\right ) + 123 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2 \right |}\right )}{1600 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.88, size = 52, normalized size = 0.55 \begin {gather*} \frac {x}{25}-\frac {\frac {123\,\mathrm {atanh}\left (\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}\right )}{800}+\frac {9\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{80\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-4\right )}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________